export default ({ http }) => ({
  // 列表
  getTeacherList(query, response) {
    return http.get('/user/teacher/list', query, response)
  },

  // 主页-基础信息
  getTeacherBasic(id, response) {
    return http.get(`/user/teacher/${id}/basic`, {}, response)
  },

  // 主页-课程
  getTeacherCourse(id, query, response) {
    return http.get(`/user/teacher/${id}/course`, query, response)
  },

  // 认证-页面
  getTeacherAuth(response) {
    return http.get('user/teacher/auth', {}, response)
  },

  // 认证-提交
  createTeacherAuth(query, response, error) {
    return http.post('user/teacher/auth', query, response, error)
  }
})
